// SaveBMP.h : header of saving .BMP file
//
// Author:     Yann Chou
//

#ifndef _SAVE_BMP_H_
#define _SAVE_BMP_H_

#ifdef __cplusplus
extern "C" {
#endif

// return 0 for failed, else return file size wrote
int  SaveBMP(
	const char *filename,	// output filename
	unsigned int width,		// width in	pixels
	unsigned int height,	// height in pixels
	unsigned char *image	// 16 or 24 bits image data
);

// SaveBMP( "test.bmp", SCREEN_WIDTH, SCREEN_HEIGHT, OFFSCREEN->pData );


#ifdef __cplusplus
}
#endif

#endif  // _SAVE_BMP_H_
